package pers.lx.crm.dao.business;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import pers.lx.crm.entiy.business.FlowDO;

import java.util.List;

/**
 * Created by lx on 2017/4/25.
 */
@Repository
public interface FlowDao {

    @Insert("insert into flow(name,description) values(#{name},#{description})")
    public void insertFlow(FlowDO flowDO) ;

    @Update("update flow set name=#{name},description=#{description} where id=#{id}")
    public void updateFlow(FlowDO flowDO) ;

    @Select("select * from flow")
    public List<FlowDO> selectFlowListPage(FlowDO flowDO) ;

    @Delete("delete from flow where id=#{id}")
    public void deleteFlow(FlowDO flowDO) ;

}
